package com.atguigu.gulimail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author huangjianyun
 * @email 2409441649@qq.com
 * @date 2021-09-06 13:16:02
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //接口声明listWithTree方法，把查询出所有的分类的容器，组装成一个树形结构
    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    //根据商品分类id获取完整路径 [/父/子/孙]
    Long[] findCatelogPath(Long catelogId);

    //商品分类的级联更新
    void updateCascade(CategoryEntity category);
}

